#include <Checker.h>

Checker::Checker(const Condition* leftCondition,
        const Condition* rigthCondition) :
    leftCondition_m(leftCondition), rigthCondition_m(rigthCondition)
{

}

bool
Checker::operator()(double input)
{
    return (*leftCondition_m)(input) && (*rigthCondition_m)(input);
}

